$(function () {
  $.ajax({
    type: "get",
    url: "logincheck.do",
    success: function (data) {
      console.log(data);
      if(data == "stimeout"){
        alert("登录过期，请重新登录");
        top.location.href = 'login.html';
			}
    },
		error:function () {
			console.log("error");
    }
  });
})